import pytesseract

from PIL import Image

str = u"/Users/cai/Desktop/屏幕快照 2017-10-19 下午5.56.50.png"

print(str)

i = Image.open(str)
text = pytesseract.image_to_string(i)
print(text)
